/**
 * Copyright (c) 2012-2018 Red Hat, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Red Hat, Inc. - initial API and implementation
 */

@eval tabIconColor org.eclipse.che.ide.api.theme.Style.theme.tabIconColor();

.clipboardButton {
    position: relative;
    top: 0;
    height: 24px;
    min-width: 18px;
    border: none;
    float: left;
    color: inherit;
    cursor: pointer;
    background: inherit;
    display: inline-block;
}

.clipboardButton svg {
    width: 18px;
    height: 100%;
}

.clipboardButton span {
    display: none;
    position: absolute;
    cursor: default;
    top: 30px;
    left: 0;
    padding: 6px;
    font-size: 8pt;
    font-weight: normal;
    white-space: nowrap;
    background: outputBackgroundColor;
    font-family: mainFontFamily;
    color: outputFontColor;
    z-index: 9999999;
}

.clipboardButton span:after {
    content: " ";
    width: 0;
    height: 0;
    border: 9px solid;
    border-color: transparent transparent tooltipBackgroundColor transparent;
    position: absolute;
    top: -16px;
    left: 0;
}

div.clipboardButton {
    margin: 1px 0 0 0;
}

div.clipboardButton svg,
div.clipboardButton svg path {
    fill: tabIconColor;
}

div.clipboardButton:hover {
    background: tooltipBackgroundColor;
}

.clipboardButton:hover span,
.clipboardButton:hover span:after {
    display: inline;
}
